Contents | Index | < Browse | Browse >
LETTERfabsULETTER
Returns the absolute value of a floating-point value.
Overview
#include <math.h>
r = fabs(x);
double r;
double x;
Portability
ANSI
Description
"fabs" computes the absolute value of the specified argument "x" which can be
a floating-point number (float) or a double-precision floating-point number
(point).
Returns
This function returns the absolute value of the specified argument as a
double-precision floating-point number.
See also
abs